package com.baidu.Chapter02;

import java.util.Scanner;

public class ex2_20 {
    public static void main(String[] args) {
        System.out.print("Enter balance and interest rate (e.g., 3 for 3%)：");
        Scanner sc=new Scanner(System.in);
        double balance = sc.nextDouble();
        double rate = sc.nextDouble();
        System.out.printf("The interest is %.5f\n",(balance*(rate/1200)));

    }
}
